﻿using System.Diagnostics.Metrics;
using System.Diagnostics;

namespace CTP.CRM.Core.Rabbit
{
    public class RabbitInstrumentation
    {
        public const string MeterName = "CTP.Rabbit.Meter";

        public const string ActivitySourceName = "CTP.Rabbit.ActivitySource";

        static RabbitInstrumentation()
        {
            var version = typeof(RabbitInstrumentation).Assembly.GetName().Version?.ToString();
            Meter = new Meter(MeterName, version);
            ActivitySource = new ActivitySource(ActivitySourceName, version);
        }

        public static Meter Meter { get; }
        public static ActivitySource ActivitySource { get; }
    }
}
